/*
 * @Description: 模型
 *
 * @Author: XiongYaoYuan<xiongyaoyuan>
 * @Date: 2023-10-16 21:03:02
 * @FilePath: /yuxiuproweb/src/api/process/vm/model.js
 */

import request from "@/utils/request";

// 查询窗幔材料 算料模型列表
export function listModel(query) {
  return request({
    url: "/md/fabricUsageModel/list",
    method: "get",
    params: query,
  });
}

// 查询窗幔材料 算料模型详细
export function getModel(fabricUsageModelId) {
  return request({
    url: "/md/fabricUsageModel/" + fabricUsageModelId,
    method: "get",
  });
}

// 新增窗幔材料 算料模型
export function addModel(data) {
  return request({
    url: "/md/fabricUsageModel",
    method: "post",
    data: data,
  });
}

// 修改窗幔材料 算料模型
export function updateModel(data) {
  return request({
    url: "/md/fabricUsageModel",
    method: "put",
    data: data,
  });
}

// 删除窗幔材料 算料模型
export function delModel(fabricUsageModelId) {
  return request({
    url: "/md/fabricUsageModel/" + fabricUsageModelId,
    method: "delete",
  });
}
